﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.Tools.Ribbon;
using Word = Microsoft.Office.Interop.Word;

namespace CodeCounsel.Office.DatabindingToolkit
{
    public partial class Ribbon : OfficeRibbon
    {
        public Ribbon()
        {
            InitializeComponent();
        }

        private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
        {
            Globals.ThisAddIn.TaskPaneManager.ManageToggleButton(_showTaskPaneButton);
        }

        void ShowTaskPaneButton_Click(object sender, RibbonControlEventArgs e)
        {
            Globals.ThisAddIn.TaskPaneManager.ToggleTaskPane(
                Globals.ThisAddIn.Application.ActiveWindow);
        }

        void ShowBuiltinItemsField_Click(object sender, RibbonControlEventArgs e)
        {
            Document document = Globals.ThisAddIn.DocumentManager.GetDocument(
                Globals.ThisAddIn.Application.ActiveDocument);            
        }
    }
}
